#ifndef _BSP_LPTIME_H_
#define _BSP_LPTIME_H_
/******************************************************************************
 * Include files
 ******************************************************************************/
#include "os_types.h"

/* C binding of definitions if building with C++ compiler */
#ifdef __cplusplus
extern "C"
{
#endif
typedef enum
{
	e_bsp_lptim1 = 0,
	e_bsp_lptim2,
	e_bsp_lptimmax
}bsp_lptim_idx_e;

bool bsp_lptim_init(bsp_lptim_idx_e lptim_idx, func_cb_void callback);

bool bsp_lptime_start(bsp_lptim_idx_e lptim_idx, uint16_t period);

bool bsp_lptime_stop(bsp_lptim_idx_e lptim_idx);

uint32_t bsp_lptim_get_current_tick(bsp_lptim_idx_e lptim_idx);

uint32_t bsp_lptim_get_countfreq(bsp_lptim_idx_e lptim_idx);

uint32_t bsp_lptim_get_tick_max(void);
#ifdef __cplusplus
}
#endif

#endif
/******************************************************************************
 * EOF (not truncated)
 ******************************************************************************/

